<?php
class MemberLevelModel extends Model{
  // 自动验证设置
  protected $_validate	 =	 array(
  array('level_name','require','level name 不能为空！'),
  array('amount','number','必须是数字格式！'),
  array('amount','require','amount必须'),
  array('level_name','','level name已存在',0,'unique',self::MODEL_INSERT),
  );
}
?>